package com.lagou.model;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

public class UserMessage implements Serializable {

    private static final long serialVersionUID = 469926095629281036L;
    private String type;//消息类型代表具体的业务
    private User user; //消息具体的内容
    private List<User> student;

    public UserMessage() {
    }

    public UserMessage(String type, User user) {
        this.type = type;
        this.user = user;
    }
    public UserMessage(String type,User user,List<User> student) {
        this.type = type;
        this.user = user;
        this.student = student;
    }

    public List<User> getStudent() {
        return student;
    }

    public void setStudent(List<User> student) {
        this.student = student;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "UserMessage{" +
                "type='" + type + '\'' +
                ", user=" + user +
                '}';
    }
}
